package com.kj.platformlogistics.login.model;

public class LoginModel {


    /**
     * success : true
     * message : 操作成功！
     * code : 200
     * result : {"token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2MjUxMzQzMzcsInVzZXJuYW1lIjoiMiJ9.UM3FLha5MoxzGy02vFol1D9DI-xH76Mzy8D9TZZ94Xo","stationUser":{"id":"2","createBy":"admin","createTime":"2021-06-22 20:27:27","updateBy":null,"updateTime":null,"name":"李四","phone":"15839433596","role":"0","account":"15839433596","password":"7772841DC6099402","salt":null,"stationId":"1","avatar":null,"cardType":null,"cardNumber":null,"identificationFront":null,"identificationContrary":null}}
     * timestamp : 1624529537356
     */

    private Boolean success;
    private String message;
    private Integer code;
    private ResultDTO result;
    private Long timestamp;

    public Boolean isSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public ResultDTO getResult() {
        return result;
    }

    public void setResult(ResultDTO result) {
        this.result = result;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public static class ResultDTO {
        /**
         * token : eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2MjUxMzQzMzcsInVzZXJuYW1lIjoiMiJ9.UM3FLha5MoxzGy02vFol1D9DI-xH76Mzy8D9TZZ94Xo
         * stationUser : {"id":"2","createBy":"admin","createTime":"2021-06-22 20:27:27","updateBy":null,"updateTime":null,"name":"李四","phone":"15839433596","role":"0","account":"15839433596","password":"7772841DC6099402","salt":null,"stationId":"1","avatar":null,"cardType":null,"cardNumber":null,"identificationFront":null,"identificationContrary":null}
         */

        private String token;
        private StationUserDTO stationUser;

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public StationUserDTO getStationUser() {
            return stationUser;
        }

        public void setStationUser(StationUserDTO stationUser) {
            this.stationUser = stationUser;
        }

        public static class StationUserDTO {
            /**
             * id : 2
             * createBy : admin
             * createTime : 2021-06-22 20:27:27
             * updateBy : null
             * updateTime : null
             * name : 李四
             * phone : 15839433596
             * role : 0
             * account : 15839433596
             * password : 7772841DC6099402
             * salt : null
             * stationId : 1
             * avatar : null
             * cardType : null
             * cardNumber : null
             * identificationFront : null
             * identificationContrary : null
             */

            private String id;
            private String createBy;
            private String createTime;
            private String updateBy;
            private String updateTime;
            private String name;
            private String phone;
            private String role;
            private String account;
            private String password;
            private Object salt;
            private String stationId;
            private String avatar;
            private Object cardType;
            private String cardNumber;
            private String identificationFront;
            private String identificationContrary;
            private String driverState;


            public String getDriverState() {
                return driverState;
            }

            public void setDriverState(String driverState) {
                this.driverState = driverState;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getCreateBy() {
                return createBy;
            }

            public void setCreateBy(String createBy) {
                this.createBy = createBy;
            }

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }

            public String getUpdateBy() {
                return updateBy;
            }

            public void setUpdateBy(String updateBy) {
                this.updateBy = updateBy;
            }

            public String getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(String updateTime) {
                this.updateTime = updateTime;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public String getRole() {
                return role;
            }

            public void setRole(String role) {
                this.role = role;
            }

            public String getAccount() {
                return account;
            }

            public void setAccount(String account) {
                this.account = account;
            }

            public String getPassword() {
                return password;
            }

            public void setPassword(String password) {
                this.password = password;
            }

            public Object getSalt() {
                return salt;
            }

            public void setSalt(Object salt) {
                this.salt = salt;
            }

            public String getStationId() {
                return stationId;
            }

            public void setStationId(String stationId) {
                this.stationId = stationId;
            }

            public String getAvatar() {
                return avatar;
            }

            public void setAvatar(String avatar) {
                this.avatar = avatar;
            }

            public Object getCardType() {
                return cardType;
            }

            public void setCardType(Object cardType) {
                this.cardType = cardType;
            }

            public String getCardNumber() {
                return cardNumber;
            }

            public void setCardNumber(String cardNumber) {
                this.cardNumber = cardNumber;
            }

            public String getIdentificationFront() {
                return identificationFront;
            }

            public void setIdentificationFront(String identificationFront) {
                this.identificationFront = identificationFront;
            }

            public String getIdentificationContrary() {
                return identificationContrary;
            }

            public void setIdentificationContrary(String identificationContrary) {
                this.identificationContrary = identificationContrary;
            }
        }
    }
}
